package com.wn.purchaeReturn.dao;

import com.wn.purchaeReturn.entity.PurPurchasebilldetail;
import com.wn.purchaeReturn.entity.PurPurchasebilldetailExample;
import com.wn.purchaeReturn.entity.PurPurchasebilldetailKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurPurchasebilldetailDao {
    long countByExample(PurPurchasebilldetailExample example);

    int deleteByExample(PurPurchasebilldetailExample example);

    int deleteByPrimaryKey(PurPurchasebilldetailKey key);

    int insert(PurPurchasebilldetail record);

    int insertSelective(PurPurchasebilldetail record);

    List<PurPurchasebilldetail> selectByExample(PurPurchasebilldetailExample example);

    PurPurchasebilldetail selectByPrimaryKey(PurPurchasebilldetailKey key);

    int updateByExampleSelective(@Param("record") PurPurchasebilldetail record, @Param("example") PurPurchasebilldetailExample example);

    int updateByExample(@Param("record") PurPurchasebilldetail record, @Param("example") PurPurchasebilldetailExample example);

    int updateByPrimaryKeySelective(PurPurchasebilldetail record);

    int updateByPrimaryKey(PurPurchasebilldetail record);

    List<PurPurchasebilldetail> selectBypurchaseno(String purchaseno);
}